﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="true"
    CodeBehind="MEDIUM_HD_List.aspx.cs" Inherits="DomMgmtSystem.View.MEDIUM_HD_List" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <table class="table table-bordered table-hover">
        <tr>
            <td class="tableleft" style="width: 150px">
                介质编号：
            </td>
            <td>
                <asp:TextBox ID="txtMEDIUM_BH" runat="server" Width="150px"></asp:TextBox>
            </td>
            <td class="tableleft" style="width: 150px">
                用途：
            </td>
            <td>
                <asp:DropDownList ID="ddlMEDIUM_YT" runat="server">
                    <asp:ListItem Value="">全部</asp:ListItem>
                    <asp:ListItem Value="1">用于接收</asp:ListItem>
                    <asp:ListItem Value="2">用于提供</asp:ListItem>
                    <asp:ListItem Value="3">用于备份</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <%--<asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>--%>
        <tr>
            <td align="right" colspan="4">
                <asp:Button ID="btnSearch" runat="server" Text="查 询" OnClick="btnSearch_Click" class="btn btn-primary"/>
            </td>
        </tr>
    </table>
    <table class="table table-bordered table-hover" id="list">
        <thead>
            <tr>
                <th style="display: none">
                    序号ID
                </th>
                <th>
                    介质编号
                </th>
                <th>
                    硬盘原编号SN
                </th>
                <th>
                    用途
                </th>
                <th>
                    来源
                </th>
                <th>
                    资料名称
                </th>
                <th>
                    数据类型
                </th>
                <th>
                    提供单位
                </th>
                <th>
                    使用单位
                </th>
                <th>
                    登记序号
                </th>
                <th>
                    提供日期
                </th>
                <th>
                    备份日期
                </th>
                <th>
                    硬盘类型
                </th>
                <th>
                    使用状态
                </th>
                <th>
                    打印状态
                </th>
                <%--<th>
                创建人
            </th>
            <th>
                创建日期
            </th>--%>
                <th>
                </th>
            </tr>
        </thead>
        <tbody>
            <asp:Repeater ID="Repeater1" runat="server">
                <ItemTemplate>
                    <tr>
                        <td style="display: none">
                            <%--序号ID--%><%#Eval("MEDIUM_ID")%>
                        </td>
                        <td>
                            <%--介质编号--%><%#Eval("MEDIUM_BH")%>
                        </td>
                        <td>
                            <%--硬盘原编号SN--%><%#Eval("MEDIUM_SN")%>
                        </td>
                        <td>
                            <%--用途--%><%# Framework.EnumHelper.EnumDescription( (Framework.Common.Use) Convert.ToInt32( Eval("MEDIUM_YT")) )%>
                        </td>
                        <td>
                            <%--来源--%><%#Eval("MEDIUM_LY")%>
                        </td>
                        <td>
                            <%--资料名称--%><%#Eval("MEDIUM_SYZT").ToString() == "0" ? "-" : Eval("MEDIUM_ZLMC")%>
                        </td>
                        <td>
                            <%--数据类型--%><%#Eval("MEDIUM_SYZT").ToString() == "0" ? "-" : DomMgmtSystem.Extens.HDDataType[Eval("MEDIUM_ZLLX").ToString()]%>
                        </td>
                        <td>
                            <%--提供单位--%><%#Eval("MEDIUM_SYZT").ToString() == "0" ? "-" : Eval("MEDIUM_YHTGDW")%>
                        </td>
                        <td>
                            <%--使用单位--%><%#Eval("MEDIUM_SYZT").ToString() == "0" ? "-" : Eval("MEDIUM_SYDW")%>
                        </td>
                        <td>
                            <%--登记序号--%><%#Eval("MEDIUM_SYZT").ToString() == "0" ? "-" : Eval("MEDIUM_DJXH")%>
                        </td>
                        <td>
                            <%--提供日期--%><%#Eval("MEDIUM_SYZT").ToString() == "0" ? "-" : Eval("MEDIUM_YHTGRQ", "{0:yyyy-MM-dd}")%>
                        </td>
                        <td>
                            <%--备份日期--%><%#Eval("MEDIUM_SYZT").ToString() == "0" ? "-" : Eval("MEDIUM_USERQ", "{0:yyyy-MM-dd}")%>
                        </td>
                        <td>
                            <%--硬盘类型--%><%#Eval("MEDIUM_SYZT").ToString() == "0" ? "-" : Framework.EnumHelper.EnumDescription( (Framework.Common.HDType) Convert.ToInt32(Eval("MEDIUM_LX")))%>
                        </td>
                        <td>
                            <%--使用状态--%><%#Eval("MEDIUM_SYZT").ToString() == "0" ? "-" : Framework.EnumHelper.EnumDescription( (Framework.Common.UseState) Convert.ToInt32(Eval("MEDIUM_SYZT")))%>
                        </td>
                        <td>
                            <%--打印状态--%><%#Framework.EnumHelper.EnumDescription( (Framework.Common.PrientState) Convert.ToInt32(Eval("MEDIUM_DYZT")))%>
                        </td>
                        <!--<td>
                        <%--创建人--%><%#Eval("CREATEUSER")%>
                    </td>
                    <td>
                        <%--创建日期--%><%#Eval("CREATEDATE", "{0:yyyy-MM-dd}")%>
                    </td>-->
                        <td>
                            <%# "<a href='MEDIUM_HD.aspx?hssjtgID=" + Eval("MEDIUM_ID") + "&IsNew=false&view=true'>查看</a>&nbsp;<a href='MEDIUM_HD.aspx?hssjtgID=" + Eval("MEDIUM_ID") + "&IsNew=false'>编辑</a>&nbsp;&nbsp;"%>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </tbody>
    </table>
    <!--分页列表-->
    <div class="inline pull-right page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" Width="569px" UrlPaging="True"
            TextBeforePageIndexBox="转到" TextAfterPageIndexBox="页" SubmitButtonText="Go" ShowPageIndexBox="Never"
            PrevPageText="上一页" PageSize="14" PageIndexBoxType="DropDownList" OnPageChanging="AspNetPager1_PageChanging"
            NumericButtonTextFormatString="[{0}]" NumericButtonCount="5" NextPageText="下一页"
            LastPageText="尾页" ForeColor="Black" FirstPageText="首页" CurrentPageButtonTextFormatString="[{0}]"
            ButtonImageAlign="Middle">
        </webdiyer:AspNetPager>
    </div>
</asp:Content>
